<?php
include "../config/koneksi.php";
include "../class/carabayar.php";

$bayar_dao=new Bayar_Dao();
$list=$bayar_dao->get_all();
?>
<html>
<body>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="30"> 
      <div align="left"><font size="3" face="tahoma">Cara Pembayaran</font><br></font><hr color=#CCCCFF>
     </div></td>
    </tr>
  </table>
  <table width="100%" border="0" bordercolor="#666666" bgcolor="#FFFFFF">
  <tr valign="middle" bordercolor="#FFFFFF"> 
    <td colspan="3"><div align="left"></div></td>
  </tr>
	<?php
	foreach($list as $list2){
	$id_bayar=$list2->id_bayar;
	?>
	<tr>
    <td valign="top">
    	<table width="100%" border="0" bordercolor="#000000">
		<tr bordercolor="#FFFFFF"> 
          	<td valign="center"><font size="2" face="tahoma">Cara Pembayaran</font></td>
          	<td valign="center"><font size="2">:</font></td>
          	<td valign="top" align=left><font size="2" face="tahoma"><textarea name=cara_Bayar cols=50 rows=10><?php echo $list2->cara_bayar;?></textarea></font></td>
          </tr>
		
	</tr>
</table>
	</td>
	<?php
		}echo"</tr></table>";
	?>
<table width=58% align=center>
<tr>
<td><?php echo "<a href=index.php?menu=edit_carabayar&id_bayar=$id_bayar><input type=submit value=Edit></a>";?></td>
</tr></table>

</body>
</html>